home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Magazine
/
C_Tutorial
/
Part-1
/
basics1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-27
|
669b
|
32 lines
#include<exec/libraries.h>
#include<intuition/intuition.h>
#include<utility/tagitem.h>
#include<clib/exec_protos.h>
#include<clib/intuition_protos.h>
struct Library* IntuitionBase;
void main()
{
IntuitionBase = OpenLibrary("intuition.library",36);
if(IntuitionBase != NULL)
{
struct Window* win;
win = OpenWindowTags(NULL,
WA_Left, 20,
WA_Top, 20,
WA_Width, 100,
WA_Height, 100,
WA_Flags, WFLG_CLOSEGADGET,
WA_IDCMP, IDCMP_CLOSEWINDOW,
TAG_DONE, 0);
if(win != NULL)
{
WaitPort(win->UserPort);
CloseWindow(win);
}
CloseLibrary(IntuitionBase);
}
}